$OpenBSD: patch-drivers_snmp-ups_c,v 1.1 2015/03/26 01:07:32 sthen Exp $

Support Huawei UPS5000-E

--- drivers/snmp-ups.c.orig	Wed Feb 26 20:48:36 2014
+++ drivers/snmp-ups.c	Wed Mar 25 22:50:37 2015
@@ -48,6 +48,7 @@
 #include "bestpower-mib.h"
 #include "cyberpower-mib.h"
 #include "delta_ups-mib.h"
+#include "huawei-mib.h"
 #include "ietf-mib.h"
 #include "xppc-mib.h"
 
@@ -72,7 +73,8 @@ static mib2nut_info_t *mib2nut[] = {
 	&bestpower,
 	&cyberpower,
 	&delta_ups,
-        &xppc,
+	&xppc,
+	&huawei,
 	/*
 	 * Prepend vendor specific MIB mappings before IETF, so that
 	 * if a device supports both IETF and vendor specific MIB,
@@ -100,7 +102,7 @@ const char *mibvers;
 static void disable_transfer_oids(void);
 
 #define DRIVER_NAME	"Generic SNMP UPS driver"
-#define DRIVER_VERSION		"0.72"
+#define DRIVER_VERSION		"0.73"
 
 /* driver description structure */
 upsdrv_info_t	upsdrv_info = {
